The reference in that section to a building which is a dwelling, applies also to an inhabited vehicle or vessel, and applies to any such vehicle or vessel at times when the person having a habitation in it is not there as well as at times when he is.